<?php
require_once dirname(__FILE__) . '/common.inc.php';
  
header('Content-Type: text/plain');

$class = MiscUtils::getParam('name', NULL);
$function = MiscUtils::getParam('f', NULL);
$cond_vals = json_decode(MiscUtils::getParam('c', NULL));
$order = MiscUtils::getParam('o', NULL);
$queue = MiscUtils::getParam('q', NULL);
$page = MiscUtils::getParam('p', NULL);
$size = MiscUtils::getParam('s', NULL);
$opt = MiscUtils::getParam('opt', NULL);

echo json_encode(DbUtils::get(DbUtils::createPdoInst(), $class, $cond_vals, $order, 'ASC', $page, $size, NULL));
?>